"""kkoffer URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url
from django.contrib import admin
from kkoffer.user.views import *
from kkoffer.resume.views import *
from kkoffer.recruit.views import *
from kkoffer.company.views import *
from kkoffer.tool.views import *
from kkoffer.dialogue.views import *
from kkoffer.article.views import *
from django.views.generic import View
from django.views.generic import TemplateView
urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^user/reg/$', reg.as_view(),name='reg'),
    url(r'^user/signIn/$',TemplateView.as_view(template_name='login.html') ,name='signIn'),
    url(r'^privacy/$',TemplateView.as_view(template_name='privacy.html') ,name='privacy'),
    url(r'^about/$',TemplateView.as_view(template_name='about.html') ,name='about'),
    url(r'^trust/$',TemplateView.as_view(template_name='trust.html') ,name='trust'),
    url(r'^user/login(.*)?$', login.as_view(),name='login'),
    url(r'^user/logout/$', logout,name='logout'),
    url(r'^user/findPw/$', findPw.as_view(),name='findPw'),
    url(r'^user/resetPw/$', resetPw.as_view(),name='resetPw'),
    url(r'^user/setPw/$', setPw.as_view(),name='setPw'),
    url(r'^resume/my/$', my.as_view(),name='myResume'),
    url(r'^resume/work/.*$', work.as_view(),name='work'),
    url(r'^resume/education/.*?$', education.as_view(),name='education'),
    url(r'^resume/pdf/$', pdf,name='pdf'),
    url(r'^resume/delete/$', delete,name='delete'),
    url(r'^resume/preview/(.*)$', preview,name='preview'),
    url(r'^resume/collect/(\d+)$', gather,name='collect'),
    url(r'^resume/inappropriate/(\d+)$', inappropriate,name='inappropriate'),
    url(r'^company/collect/$', collectList,name='collectList'),
    url(r'^company/addJob.*$',addJob.as_view(),name='addJob'),
    url(r'^company/job/$',jobList,name='job'),
    url(r'^company/receive/(\d+)$',receive,name='receive'),
    url(r'^company/delJob$',delJob,name='delJob'),
    url(r'^company/jobStatus/(\d+)/(\d+)$',jobStatus,name='jobStatus'),
    url(r'^company/basic/$', basic.as_view(),name='basic'),
    url(r'^company/job/(\d+)$', companyJob,name='companyJob'),
    url(r'^companyList/(.*)?$', companyList,name='company'),
    url(r'^company/audit/(.*)?$', companyAudit,name='companyAudit'),
    url(r'^company/del/(.*)?$', companyDel,name='companyDel'),
    # url(r'^company/(.*)?$', companyList,name='company'),
    url(r'^$', index,name='index'),
    url(r'^index/(.*)?', index,name='index'),
    url(r'^upload/$', upload,name='upload'),
    url(r'^exchange/$', exchange,name='exchange'),
    url(r'^jobs/(\d+)$', jobs,name='jobs'),
    url(r'^send/(\d+)$', send,name='send'),
    url(r'^message/(.*)?$', messageList,name='message'),
    url(r'^dialogue/(.*)?$', dialogue.as_view(),name='dialogue'),
    url(r'^memberDialogue/(.*)?$',memberDialogue,name='memberDialogue'),
    url(r'^article/$', articleList,name='article'),
    url(r'^article/type/(?P<id>\d+)?$', articleList,name='articleType'),
    url(r'^article/(?P<id>\d+)?$', articleDetails,name='details'),
    url(r'^article/publish/', publish.as_view(),name='publish'),
    url(r'^article/manage/', articleManage,name='articleManage'),
    url(r'^article/edit/(\d+)', articleEdit,name='articleEdit'),
    url(r'^article/broadcast/$', broadcast.as_view(),name='broadcast'),
    # url(r'^article/weixing/$',weixing,name='weixing'),
    url(r'^article/collect/$',collect.as_view(),name='collect'),
    url(r'^company/detail/(\d+)', companyDetail,name='companyDetail'),
    url(r'^article/del/(\d+)', articleDel,name='articleDel'),
    # url(r'^article/(.*)?$', aarticle,name='article'),
    # url(r'^accounts/login/$', 'django.contrib.auth.views.login'),
]